#当前工作文件夹下创建50个以test为前缀，不重名的文件夹。
import os
def mkdir(path):
    path=path.strip()
    path=path.rstrip("\\")
    isExists=os.path.exists(path)
    if not isExists:
        print(f"{path}创建成功")
        os.makedirs(path)
        return True
    else:
        print(f"{path}目录已存在")
        return False

for i in range(0,50):
    mkdir(f"C:\\Users\\w_admin\\mystuff\\test{i}")
    


#计算10000以内所有3,7,13,19,23,29的倍数的正整数的和并分别打印出来
list1 = []
list2 = []
list3 = []
list4 = []
list5 = []
list6 = []
overall = 0
for i in range(1,10001):
    if (i%3 == 0):
        list1.append(i)
        overall = overall+i
    elif (i%7 == 0):
        list2.append(i)
        overall = overall+i
    elif (i%13 == 0):
        list3.append(i)
        overall = overall+i
    elif (i%19 == 0):
        list4.append(i)
        overall = overall+i
    elif (i%23 == 0):
        list5.append(i)
        overall = overall+i
    elif (i%29 == 0):
        list6.append(i)
        overall = overall+i
print(f"所有正整数总和为：{overall}")
print("\n10000以内所有3的倍数：")
print(*list1, sep=' ')
print("\n10000以内所有7的倍数：")
print(*list2, sep=' ')
print("\n10000以内所有13的倍数：")
print(*list3, sep=' ')
print("\n10000以内所有19的倍数：")
print(*list4, sep=' ')
print("\n10000以内所有23的倍数：")
print(*list5, sep=' ')
print("\n10000以内所有29的倍数：")
print(*list6, sep=' ')